Optimal. Leaf size=258 \[ \frac{b p q (h i-g j)^2 \text{PolyLog}\left (2,-\frac{h (e+f x)}{f g-e h}\right )}{h^3}+\frac{(h i-g j)^2 \log \left (\frac{f (g+h x)}{f g-e h}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h^3}+\frac{(i+j x)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{2 h}+\frac{a j x (h i-g j)}{h^2}+\frac{b j (e+f x) (h i-g j) \log \left (c \left (d (e+f x)^p\right )^q\right )}{f h^2}-\frac{b p q (f i-e j)^2 \log (e+f x)}{2 f^2 h}-\frac{b j p q x (f i-e j)}{2 f h}-\frac{b j p q x (h i-g j)}{h^2}-\frac{b p q (i+j x)^2}{4 h} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.544584, antiderivative size = 258, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 9, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.273, Rules used = {2418, 2389, 2295, 2394, 2393, 2391, 2395, 43, 2445} \[ \frac{b p q (h i-g j)^2 \text{PolyLog}\left (2,-\frac{h (e+f x)}{f g-e h}\right )}{h^3}+\frac{(h i-g j)^2 \log \left (\frac{f (g+h x)}{f g-e h}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h^3}+\frac{(i+j x)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{2 h}+\frac{a j x (h i-g j)}{h^2}+\frac{b j (e+f x) (h i-g j) \log \left (c \left (d (e+f x)^p\right )^q\right )}{f h^2}-\frac{b p q (f i-e j)^2 \log (e+f x)}{2 f^2 h}-\frac{b j p q x (f i-e j)}{2 f h}-\frac{b j p q x (h i-g j)}{h^2}-\frac{b p q (i+j x)^2}{4 h} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2418
Rule 2389
Rule 2295
Rule 2394
Rule 2393
Rule 2391
Rule 2395
Rule 43
Rule 2445
Rubi steps
\begin{align*} \int \frac{(524+j x)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{g+h x} \, dx &=\operatorname{Subst}\left (\int \frac{(524+j x)^2 \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{g+h x} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\operatorname{Subst}\left (\int \left (\frac{j (524 h-g j) \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{h^2}+\frac{(524 h-g j)^2 \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{h^2 (g+h x)}+\frac{j (524+j x) \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{h}\right ) \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\operatorname{Subst}\left (\frac{j \int (524+j x) \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right ) \, dx}{h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname{Subst}\left (\frac{(j (524 h-g j)) \int \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right ) \, dx}{h^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname{Subst}\left (\frac{(524 h-g j)^2 \int \frac{a+b \log \left (c d^q (e+f x)^{p q}\right )}{g+h x} \, dx}{h^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac{a j (524 h-g j) x}{h^2}+\frac{(524+j x)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{2 h}+\frac{(524 h-g j)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac{f (g+h x)}{f g-e h}\right )}{h^3}+\operatorname{Subst}\left (\frac{(b j (524 h-g j)) \int \log \left (c d^q (e+f x)^{p q}\right ) \, dx}{h^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{(b f p q) \int \frac{(524+j x)^2}{e+f x} \, dx}{2 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{\left (b f (524 h-g j)^2 p q\right ) \int \frac{\log \left (\frac{f (g+h x)}{f g-e h}\right )}{e+f x} \, dx}{h^3},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac{a j (524 h-g j) x}{h^2}+\frac{(524+j x)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{2 h}+\frac{(524 h-g j)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac{f (g+h x)}{f g-e h}\right )}{h^3}+\operatorname{Subst}\left (\frac{(b j (524 h-g j)) \operatorname{Subst}\left (\int \log \left (c d^q x^{p q}\right ) \, dx,x,e+f x\right )}{f h^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{(b f p q) \int \left (\frac{j (524 f-e j)}{f^2}+\frac{(524 f-e j)^2}{f^2 (e+f x)}+\frac{j (524+j x)}{f}\right ) \, dx}{2 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\operatorname{Subst}\left (\frac{\left (b (524 h-g j)^2 p q\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{h x}{f g-e h}\right )}{x} \, dx,x,e+f x\right )}{h^3},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac{a j (524 h-g j) x}{h^2}-\frac{b j (524 f-e j) p q x}{2 f h}-\frac{b j (524 h-g j) p q x}{h^2}-\frac{b p q (524+j x)^2}{4 h}-\frac{b (524 f-e j)^2 p q \log (e+f x)}{2 f^2 h}+\frac{b j (524 h-g j) (e+f x) \log \left (c \left (d (e+f x)^p\right )^q\right )}{f h^2}+\frac{(524+j x)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{2 h}+\frac{(524 h-g j)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac{f (g+h x)}{f g-e h}\right )}{h^3}+\frac{b (524 h-g j)^2 p q \text{Li}_2\left (-\frac{h (e+f x)}{f g-e h}\right )}{h^3}\\ \end{align*}
Mathematica [A] time = 0.296129, size = 231, normalized size = 0.9 \[ \frac{4 b f^2 p q (h i-g j)^2 \text{PolyLog}\left (2,\frac{h (e+f x)}{e h-f g}\right )+f \left (h j x (2 a f (-2 g j+4 h i+h j x)+b p q (2 e h j-f (-4 g j+8 h i+h j x)))+4 a f (h i-g j)^2 \log \left (\frac{f (g+h x)}{f g-e h}\right )+2 b \log \left (c \left (d (e+f x)^p\right )^q\right ) \left (h j (e (4 h i-2 g j)+f x (-2 g j+4 h i+h j x))+2 f (h i-g j)^2 \log \left (\frac{f (g+h x)}{f g-e h}\right )\right )\right )-2 b e^2 h^2 j^2 p q \log (e+f x)}{4 f^2 h^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.865, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( jx+i \right ) ^{2} \left ( a+b\ln \left ( c \left ( d \left ( fx+e \right ) ^{p} \right ) ^{q} \right ) \right ) }{hx+g}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} 2 \, a i j{\left (\frac{x}{h} - \frac{g \log \left (h x + g\right )}{h^{2}}\right )} + \frac{1}{2} \, a j^{2}{\left (\frac{2 \, g^{2} \log \left (h x + g\right )}{h^{3}} + \frac{h x^{2} - 2 \, g x}{h^{2}}\right )} + \frac{a i^{2} \log \left (h x + g\right )}{h} + \int \frac{{\left (j^{2} \log \left (c\right ) + j^{2} \log \left (d^{q}\right )\right )} b x^{2} + 2 \,{\left (i j \log \left (c\right ) + i j \log \left (d^{q}\right )\right )} b x +{\left (i^{2} \log \left (c\right ) + i^{2} \log \left (d^{q}\right )\right )} b +{\left (b j^{2} x^{2} + 2 \, b i j x + b i^{2}\right )} \log \left ({\left ({\left (f x + e\right )}^{p}\right )}^{q}\right )}{h x + g}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{a j^{2} x^{2} + 2 \, a i j x + a i^{2} +{\left (b j^{2} x^{2} + 2 \, b i j x + b i^{2}\right )} \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right )}{h x + g}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (j x + i\right )}^{2}{\left (b \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right ) + a\right )}}{h x + g}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]